package domain;

import java.util.HashSet;
import java.util.Set;

public class Order {
	private int orderId;
	private String address;
	private Set<OrderItem> orderItems=new HashSet<OrderItem>();
	public int getOrderId() {
		return orderId;
	}
	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Set<OrderItem> getOrderItems() {
		return orderItems;
	}
	public void setOrderItems(Set<OrderItem> orderItems) {
		this.orderItems = orderItems;
	}
	public void addOrderItem(OrderItem orderItem)
	{
		orderItem.setOrder(this);
		this.orderItems.add(orderItem);
	}
	
}
